import requests
import json
header = {"user-agent":
          "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36"}
response = requests.get("https://www.lagou.com/lbs/getAllCitySearchLabels.json",headers=header)
print(response.text)
d = json.loads(response.text)
city = d["content"]["data"]["allCitySearchLabels"]["A"]
for i in city:
    print(i["name"])